from models.common import *


class Item(Base):
    __tablename__ = 'Items'
    id = Column(Integer, primary_key=True)
    name = Column(String)
    position = Column(String)
    attr = Column(String, default='')
    pic = Column(String)
    picFileName = Column(String)
    price = Column(Float, default='0.0')
    created_date = Column(Date)
    update_date = Column(Date)

    def __repr__(self):
        return "<Item (name='%s', position='%s')>" % (
            self.name, self.position)
